﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GetproductName.ascx.cs" Inherits="BookStore.Controls.GetproductName" %>
 <div  class="related ">
    <div class="box-product"> 
      <ul>
          <asp:Repeater ID="Repeater1" runat="server">
                
          <ItemTemplate>
           <li class="related-info">
                <div class="image"><a href="<%# Eval("productID") %>">
                    <asp:LinkButton ID="lbnimg" runat="server" 
                            CommandArgument='<%# Eval("productId") %>' onclick="lbnimg_Click"> <asp:Image ID="Image1" runat="server" ImageUrl='<%# "/image/Catalog/"+Eval("images") %>' Width="126px" Height="188px" /> </asp:LinkButton></a></div>
                <div class="name"><a href="#">
                     <asp:LinkButton ID="lnbname" runat="server"
                        CommandArgument='<%# Eval("productId") %>' Text='<%# Eval("productName") %>' 
                             onclick="lnbname_Click"></asp:LinkButton></a></div>
                <div class="price">
                     <span class="price-new">
                         <asp:Label ID="Label1" runat="server" Text='<%# Eval("price", "{0:C}") %>'></asp:Label></span><span class="price-old"></span>
                    <div class="rating">
                    </div>
        </div>     
          <div class="cart" style=" text-align:center; ">
                        <asp:LinkButton ID="LinkButton1" runat="server" CssClass="button addToCart" 
                              ForeColor="White" Font-Size="12px" Height="22px" Width="100px"  
                              CommandArgument='<%# Eval("productId") %>' onclick="LinkButton1_Click">Add to cart</asp:LinkButton></a></div>
        </li>
          </ItemTemplate>
          </asp:Repeater>
      </ul>
    </div>
